package com.wanmait.happyheating.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
* Created by Mybatis Generator 2021/05/10
*/
@Data
@TableName(value = "tag")
public class Tag implements Serializable {
     @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 使用数量
     */
    @TableField(value = "count")
    private Integer count;

    /**
     * 关联员工
     */
    @TableField(value = "workers_id")
    private Integer workersId;
    @TableField(exist = false)
    private Workers workers;
    /**
     * 标签名
     */
    @TableField(value = "base_tag_id")
    private Integer baseTagId;
    @TableField(exist = false)
    private BaseTag baseTag;

    @TableField(value = "enable")
    private Boolean enable;

    private static final long serialVersionUID = 1L;

    public static final String COL_COUNT = "count";

    public static final String COL_WORKER_ID = "workers_id";

    public static final String COL_BASE_TAG_ID = "base_tag_id";

    public static final String COL_ENABLE = "enable";
}